package com.hbu.product.hbumallproduct.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @ProjectName: hbu-mall
 * @Package: com.hbu.product.hbumallproduct.config
 * @ClassName: WebMVCConfig
 * @Author: zxh
 * @Description:
 * @Date: 2022/12/6 20:34
 * @Version: 1.0
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");
    }

}
